home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / xfcn / spttool.cpt / Support Tools eXternals 1.2.5 / card_41273.txt < prev    next >
Text File  |  1990-11-13  |  907b  |  45 lines

  1. -- card: 41273 from stack: in.5
  2. -- bmap block id: 45810
  3. -- flags: 0000
  4. -- background id: 3858
  5. -- name: TotalRam
  6. ----- HyperTalk script -----
  7. on hideObjects
  8.   hide cd btn "Try It!"
  9. end hideObjects
  10.  
  11. on showObjects
  12.   show cd btn "Try It!"
  13. end showObjects
  14.  
  15.  
  16. -- part 1 (button)
  17. -- low flags: 00
  18. -- high flags: A002
  19. -- rect: left=82 top=185 right=219 bottom=175
  20. -- title width / last selected line: 0
  21. -- icon id / first selected line: 0 / 0
  22. -- text alignment: 1
  23. -- font id: 0
  24. -- text size: 12
  25. -- style flags: 8192
  26. -- line height: 16
  27. -- part name: Try it!
  28. ----- HyperTalk script -----
  29. on mouseUp
  30.   answer "This Mac has" && TotalRam() div 1024 && "Kbytes of ram."
  31. end mouseUp
  32.  
  33.  
  34.  
  35.  
  36. -- part contents for background part 38
  37. ----- text -----
  38. 46/50
  39.  
  40. -- part contents for background part 20
  41. ----- text -----
  42.      An XFCN which returns the total amount of ram in the Macintosh (in bytes).
  43.  
  44.      Calling syntax : TotalRam()
  45.